package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

import java.util.List;

/*

*/
public interface RoleService {
    //编辑
    public void edit(Role role,Integer[] permissionIds,Integer[] menuIds);

    //添加
    public void add(Role role, Integer[] permissionIds, Integer[] menuIds);
    //分页查询
    PageResult pageQuery(QueryPageBean queryPageBean);


    //id查询
    public Role findByID(Integer id);

    //根据角色信息查询权限
    public List<Integer> findPermissionIdsByRoleId(Integer id);

    //根据角色信息，查询显示菜单
    public List<Integer> findMenuIdsByRoleId(Integer id);
    //删除
    public void delete(Integer id);

    public List<Role> findAll();

}
